package com.itheima.homework.test2;

import lombok.NoArgsConstructor;

@NoArgsConstructor
/**
 * @author jiangxun
 * @date 11-19-2024
 */
public abstract class Employee {
    private int workNumber;
    private String name;
    private double salary;

    public Employee(int workNumber, String name, double salary) {
        this.workNumber = workNumber;
        this.name = name;
        this.salary = salary;
    }

    public abstract void work();

    public abstract  void eat();

    public int getWorkNumber() {
        return workNumber;
    }

    public String getName() {
        return name;
    }

    public double getSalary() {
        return salary;
    }
}
